package com.scitc.pleasurevideo.pojo;

import com.google.gson.annotations.Expose;

import java.io.Serializable;

public class VideoSourceVo implements Serializable {
    /**
     * 网址id
     */
    @Expose
    private String source_url_id;
    /**
     * 网址的title名字
     */
    @Expose
    private String source_url_title;
    /**
     * 网址
     */
    @Expose
    private String source_url_html_str;
    /**
     * 网址搜索路径
     */
    @Expose
    private String source_url_search_str;
    /**
     * 对于这个网址的简介
     */
    @Expose
    private String source_url_subtitle;
    /**
     * 这个网址添加的日期
     */
    @Expose
    private String source_url_add_date;
    /**
     * 这个网址的点击次数
     */
    @Expose
    private String source_url_use_count;
    /**
     * 网址的播放方式
     */
    @Expose
    private String source_url_play_type;
    /**
     * 这个网址是否支持下载
     */
    @Expose
    private String source_url_is_download;
    /**
     * 这个网址是否显示
     */
    @Expose
    private String source_url_is_select;
    /**
     * 是否显示这个网址
     */
    @Expose
    private String source_url_is_use;

    public String getSource_url_id() {
        return source_url_id;
    }

    public void setSource_url_id(String source_url_id) {
        this.source_url_id = source_url_id;
    }

    public String getSource_url_title() {
        return source_url_title;
    }

    public void setSource_url_title(String source_url_title) {
        this.source_url_title = source_url_title;
    }

    public String getSource_url_html_str() {
        return source_url_html_str;
    }

    public void setSource_url_html_str(String source_url_html_str) {
        this.source_url_html_str = source_url_html_str;
    }

    public String getSource_url_search_str() {
        return source_url_search_str;
    }

    public void setSource_url_search_str(String source_url_search_str) {
        this.source_url_search_str = source_url_search_str;
    }

    public String getSource_url_subtitle() {
        return source_url_subtitle;
    }

    public void setSource_url_subtitle(String source_url_subtitle) {
        this.source_url_subtitle = source_url_subtitle;
    }

    public String getSource_url_add_date() {
        return source_url_add_date;
    }

    public void setSource_url_add_date(String source_url_add_date) {
        this.source_url_add_date = source_url_add_date;
    }

    public Integer getSource_url_use_count() {
        try {
            return Integer.parseInt(source_url_use_count);
        }catch (Exception e){
            this.source_url_use_count="0";
            return 0;
        }
    }

    public void setSource_url_use_count(Integer source_url_use_count) {
        this.source_url_use_count = String.valueOf(source_url_use_count);
    }

    public String getSource_url_play_type() {
        return source_url_play_type;
    }

    public void setSource_url_play_type(String source_url_play_type) {
        this.source_url_play_type = source_url_play_type;
    }

    public boolean getSource_url_is_download() {
        return "true".equals(source_url_is_download);
    }

    public void setSource_url_is_download(boolean source_url_is_download) {
        if(source_url_is_download){
            this.source_url_is_download="true";
        }else {
            this.source_url_is_download="false";
        }
    }
    public void setSource_url_is_download(String source_url_is_download) {
        this.source_url_is_download=source_url_is_download;
    }
    public boolean getSource_url_is_use() {
        return "true".equals(source_url_is_use);
    }

    public void setSource_url_is_use(boolean source_url_is_use) {
        if(source_url_is_use){
            this.source_url_is_use="true";
        }else {
            this.source_url_is_use="false";
        }
    }
    public void setSource_url_is_use(String source_url_is_use) {
        this.source_url_is_use=source_url_is_use;
    }
    public boolean getSource_url_is_select() {
        return "true".equals(source_url_is_select);
    }

    public void setSource_url_is_select(boolean source_url_is_select) {
        if(source_url_is_select){
            this.source_url_is_select="true";
        }else {
            this.source_url_is_select="false";
        }
    }

    public void setSource_url_is_select(String source_url_is_select) {
        this.source_url_is_select=source_url_is_select;
    }

    public String[] getStringArray(){
        String[] array=new String[11];
        array[0]=this.source_url_id;
        array[1]=this.source_url_title;
        array[2]=this.source_url_html_str;
        array[3]=this.source_url_search_str;
        array[4]=this.source_url_subtitle;
        array[5]=this.source_url_add_date;
        array[6]=this.source_url_use_count;
        array[7]=this.source_url_play_type;
        array[8]=this.source_url_is_download;
        array[9]=this.source_url_is_select;
        array[10]=this.source_url_is_use;
        return array;
    }
    public String[] getStringArrayIdAfter(){
        String[] array=new String[11];
        array[0]=this.source_url_title;
        array[1]=this.source_url_html_str;
        array[2]=this.source_url_search_str;
        array[3]=this.source_url_subtitle;
        array[4]=this.source_url_add_date;
        array[5]=this.source_url_use_count;
        array[6]=this.source_url_play_type;
        array[7]=this.source_url_is_download;
        array[8]=this.source_url_is_select;
        array[9]=this.source_url_is_use;
        array[10]=this.source_url_id;
        return array;
    }

    public VideoSourceVo(String[] array) {
        if(array.length>=11){
            this.source_url_id = array[0];
            this.source_url_title = array[1];
            this.source_url_html_str = array[2];
            this.source_url_search_str = array[3];
            this.source_url_subtitle = array[4];
            this.source_url_add_date = array[5];
            this.source_url_use_count = array[6];
            this.source_url_play_type = array[7];
            this.source_url_is_download = array[8];
            this.source_url_is_select = array[9];
            this.source_url_is_use = array[10];
        }
    }
    public VideoSourceVo() {}
}
